package org.zhu.service_merge_v2.service;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.zhu.service_merge_v2.hystric.UsersHystric;

/**
 * Created by zhu yingzhi on 2017/8/30.
 */
@FeignClient(value = "command-user-service",fallback = UsersHystric.class)
public interface UsersCommandService {
    @RequestMapping(value = "hello",method = RequestMethod.GET)
    String sayCommandHello();

    @RequestMapping(value = "getName",method = RequestMethod.GET)
    String sayCommandName();
}
